/* ===================================================
   Reinwart IT – Modern Homepage Stylesheet
   =================================================== */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --dark-bg: #0f1117;
    --dark-surface: #1a1d27;
    --dark-border: #2a2d3a;
    --light-bg: #f8f9fc;
    --text-muted-dark: #8b95a8;
    --section-pad: 100px;
    --border-radius: 16px;
}

/* ── Base ── */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1d27;
    background: #ffffff;
    margin-bottom: 0;
}

/* Offset for fixed navbar */
section[id] {
    scroll-margin-top: 70px;
}

/* ── Utility ── */
.letter-spacing { letter-spacing: 0.08em; }
.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1) !important;
}
.text-primary { color: var(--primary) !important; }

/* ── Navbar ── */
#mainNav {
    backdrop-filter: blur(10px);
    background-color: rgba(15, 17, 23, 0.95) !important;
    transition: background 0.3s ease;
    padding: 12px 0;
}
#mainNav .navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}
#mainNav .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    color: rgba(255,255,255,0.75) !important;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    background: rgba(13, 110, 253, 0.15);
    color: #fff !important;
}

/* ── Hero ── */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #111827 60%, #0d1a33 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,110,253,0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.hero-eyebrow { font-size: 0.8rem; }
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    color: #fff;
}
.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6) !important;
}

/* Hero tech badges grid */
.hero-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 360px;
}
.hero-tech-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 20px 12px;
    transition: background 0.3s, transform 0.3s;
}
.hero-tech-badge:hover {
    background: rgba(13,110,253,0.15);
    transform: translateY(-4px);
}
.hero-tech-badge i { font-size: 1.6rem; color: var(--primary); }
.hero-tech-badge span { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ── Stats Bar ── */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}
.stat-number { font-size: 2rem; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Content Sections ── */
.content-section { padding: var(--section-pad) 0; }

.section-light { background: var(--light-bg); }
.section-dark {
    background: var(--dark-bg);
    color: #e2e8f0;
}
.section-dark .text-muted { color: var(--text-muted-dark) !important; }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6,
.section-dark strong { color: #e2e8f0; }

.section-label { font-size: 0.75rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; }

/* ── Section Icon Box ── */
.section-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(13,110,253,0.15), rgba(111,66,193,0.15));
    border: 1px solid rgba(13,110,253,0.2);
    margin-bottom: 1.5rem;
}
.section-icon-box i { font-size: 2rem; color: var(--primary); }

/* ── Feature Cards (Section 1) ── */
.feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 28px 24px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
    border-color: rgba(13,110,253,0.3);
    box-shadow: 0 8px 32px rgba(13,110,253,0.08);
    transform: translateY(-4px);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}
.feature-icon i { font-size: 1.25rem; }

/* ── Highlight Box ── */
.highlight-box {
    background: rgba(13,110,253,0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
}

/* ── Modern Benefit Cards (Section 2) ── */
.modern-benefit-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    padding: 28px 24px;
    height: 100%;
    transition: border-color 0.3s, background 0.3s;
}
.modern-benefit-card:hover {
    border-color: rgba(13,110,253,0.4);
    background: rgba(13,110,253,0.06);
}
.modern-benefit-card h6 { color: #e2e8f0; }

/* ── Timeline (Section 2) ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    transition: background 0.3s;
}
.timeline-item:hover { background: rgba(13,110,253,0.08); }
.timeline-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6f42c1);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-content h6 { color: #e2e8f0; }

/* ── Result Banner (Section 2) ── */
.result-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(13,110,253,0.12), rgba(111,66,193,0.08));
    border: 1px solid rgba(13,110,253,0.25);
    border-radius: var(--border-radius);
    padding: 28px 32px;
    color: #e2e8f0;
}

/* ── eHealth Cards (Section 3) ── */
.ehealth-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 32px 28px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.ehealth-card:hover {
    border-color: rgba(13,110,253,0.3);
    box-shadow: 0 12px 40px rgba(13,110,253,0.08);
}
.ehealth-card-header { display: flex; align-items: center; }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #495057;
    border-bottom: 1px solid #f1f3f5;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { flex-shrink: 0; margin-top: 3px; font-size: 0.85rem; }

/* ── Azure Cards (Section 4) ── */
.azure-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    padding: 32px 28px;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.azure-card:hover {
    border-color: rgba(13,110,253,0.4);
    background: rgba(13,110,253,0.07);
    transform: translateY(-4px);
}
.azure-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13,110,253,0.2), rgba(111,66,193,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}
.azure-card-icon i { font-size: 1.5rem; color: var(--primary); }
.azure-card h5 { color: #e2e8f0; }

.feature-list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list-compact li {
    padding: 5px 0;
    font-size: 0.875rem;
    color: var(--text-muted-dark);
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-list-compact li:last-child { border-bottom: none; }
.feature-list-compact li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ── Cert Sections ── */
.cert-group { margin-bottom: 2.5rem; }
.cert-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1d27;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}
.cert-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
}
.cert-badge-wrapper:hover { background: rgba(13,110,253,0.05); }
.cert-badge-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}
.cert-badge-img.cert-badge-bw { filter: grayscale(30%); }
.cert-badge-img-sm {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}
.cert-badge-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
    max-width: 90px;
    line-height: 1.3;
}
.other-cert-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 28px 20px;
    height: 100%;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.other-cert-card:hover {
    border-color: rgba(13,110,253,0.25);
    box-shadow: 0 8px 24px rgba(13,110,253,0.07);
}
.badge.bg-primary-soft {
    background-color: rgba(13,110,253,0.1) !important;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

/* ── Footer ── */
.footer-dark {
    background: var(--dark-bg);
    border-top: 1px solid var(--dark-border);
}
.footer-dark p, .footer-dark a { color: rgba(255,255,255,0.5); }
.footer-dark a:hover { color: rgba(255,255,255,0.8); }
.footer-dark .fw-semibold { color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
    :root { --section-pad: 64px; }
    .hero-section { padding: 100px 0 60px; }
    .result-banner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 576px) {
    .cert-badge-img { width: 64px; height: 64px; }
    .hero-badge-grid { grid-template-columns: repeat(2, 1fr); }
}
